package com.cxm.homework4.anno;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userService")
public class UserServiceImpl {
    @Resource(name = "userDao")
    private UserDaoImpl userDao;
    public void say(){
        System.out.println("service say");
        userDao.say();
    }

}
